<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="echarts.js"> </script>
</head>
<body>
    <div id="main" style="width: 600px;height: 400px;border: 2px solid red"></div>
    <script type="text/javascript">
        var myecharts = echarts.init(document.getElementById('main'));
        var option = {
            title: {text: '标签人数分布', left: 'center'},
            tooltip: {
                trigger: 'item'
            },
            legend: {
                orient: 'vertical',
                left: 'left',
            },
            series: [
                {
                    name: '人数分布',
                    type: 'pie',
                    radius: '50%',
                    data: [
                        {value: 183472, name: '流失用户'},
                        {value: 6546, name: '回流用户'},
                        {value: 524, name: '连续活跃用户'},
                        {value: 91, name: '新用户'},
                        {value: 0, name: '活跃用户'}],
                    emphasis: {
                        itemStyle: {
                            shadowBlur: 10,
                            shadowOffsetX: 0,
                            shadowColor: 'rgba(0, 0, 0, 0.5)'
                        }
                    }
                }
            ]
        };
        myecharts.setOption(option)

    </script>
</body>
</html>